package com.jichangxiu.dynamic.test.config;

import org.springframework.scheduling.annotation.Async;

import java.lang.annotation.*;

/**
 * @author Jcx
 * @date 2022/11/27 7:52
 */
@Target({ElementType.TYPE, ElementType.METHOD})
@Async(ThreadPoolConfig.THREAD_POOL)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SelectDB {

    // 数据库名称
    String dbName();

    // 查询参数中标识区服的字段
    String serverFiled() default "-1";

}

